


<div>


<div id="discounts">
<b><a href="newdiscounts">lägg till en ny rabatt</a></b>
</div>

<br/>
<br/>
<br/>

<?php

			
	
	
	
	foreach($oneUseDiscounts as $row)
	{
		echo "<li>";
				
				 
				 echo '<input type="hidden" name="txtID" value="'. $row['ID'] .'"/>';
				 
				 echo '<div id="bookings" align="center"  style="height:90px; width:500px; border-style:solid" >';
				 echo "<b>Kod:  </b>";	
				 echo $row['kod'];
			 	 echo "  ";
				 
				 echo "<b>Rabatt:  </b>";	
				 echo $row['rabatt'];
			 	 echo "  ";
				 
				 echo "<b>Annvänd:  </b>";	
				 echo $row['annvand'];
			 
															
			 	 echo "  <br/>";	
		echo "</li>";
	}



		
	foreach($periodDiscounts as $row)
	{
		echo "<li>";
				
				 
				 echo '<input type="hidden" name="txtID" value="'. $row['ID'] .'"/>';
				 
				 echo '<div id="bookings" align="center"  style="height:90px; width:500px; border-style:solid" >';
				 echo "<b>Kod:  </b>";	
				 echo $row['kod'];
			 	 echo "  ";
				 
				 echo "<b>Rabatt:  </b>";	
				 echo $row['rabatt'];
			 	 echo "  ";
				 
				 echo "<b>Start datum:  </b>";	
				 echo $row['StartDatum'];
				 
				 echo "  ";
				 
				 echo "<b>Slut datum:  </b>";	
				 echo $row['SlutDatum'];
			 
															
			 	 echo "  <br/>";	
		echo "</li>";
	}
?>





</div>